package com.sky.config;

import com.sky.utils.DistanceUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@Slf4j
public class BaiduConfiguation {

    @Bean
    @ConditionalOnMissingBean
    public DistanceUtil distanceUtil(){
        log.info("初始化百度地图工具类");
        return new DistanceUtil();
    }
}
